Skip to content

admin_shortcuts_tags.py - fix for url_extra option - #43

Open
friedgit wants to merge 1 commit into
alesdotio:masterfrom
friedgit:master
Open

admin_shortcuts_tags.py - fix for url_extra option#43
friedgit wants to merge 1 commit into
alesdotio:masterfrom
friedgit:master

Conversation

@friedgit

Copy link
Copy Markdown
  1. 'url_extra' could only ever take effect if the 'url_name' tag was specified rather than the 'url' tag, due I believe to incorrect indentation in the line in 'admin_shortcuts_tags.py' where the 'url_extra' tag is appended to the 'url'.

  2. 'url_extra' could only be specified as a string to be appended, whereas one might expect to be able to specify a function, as in 'count' or 'count_new', which permit either a string or a function.

This change fixes both issues

1. 'url_extra' could only ever take effect if the 'url_name' tag was specified rather than the 'url' tag, due I believe to incorrect indentation in the line in 'admin_shortcuts_tags.py' where the 'url_extra' tag is appended to the 'url'.

2. 'url_extra' could only be specified as a string to be appended, whereas one might  expect to be able to specify a function, as in 'count' or 'count_new', which permit either a string or a function. 

This change fixes both issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant